﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using MiniStock.Client.UI.QueryService;

namespace MiniStock.Client.UI.Models
{
    public class ChangeNameModel
    {
        public Guid? Id { get; set; }

        [Required]
        public string Name { get; set; }


        public ChangeNameModel()
        {
        }

        public ChangeNameModel(Customer c)
        {
            Id = c.Id;
            Name = c.Name;
        }

        public ChangeNameModel(Product p)
        {
            Id = p.Id;
            Name = p.Name;
        }

    }

    public class ChangeDescriptionModel
    {
        public Guid? Id { get; set; }

        public string Description { get; set; }


        public ChangeDescriptionModel()
        {
        }

        public ChangeDescriptionModel(Product p)
        {
            Id = p.Id;
            Description = p.Description;
        }

    }

}